/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package game.server;

import java.net.Socket;

/**
 *
 * @author RERIR
 */
public interface IGameServer {
    final static int ZERO = 1;
    final static int PLUS = 2;
    final static int SERVER_PORT = 12345; 
    final static int SERVER_TCP_PORT = 12346; 
    final static int BUFFER_SIZE = 16400;
    
    int connect(Gamer g) throws GameException;
    Gamer[] getList();
    int startGame(int id);
    boolean disconnect(int id);
    String joinGame(String g, String id);
    Integer newGame(String login);
    boolean move(Gamer g, int pos);
    boolean stopGame(Gamer g);
}
